//
//  DRHttpModel.h
//  DoctorRen
//
//  Created by Lemon on 2018/11/20.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    DRPost,
    DRGet
} DRRequestType;

@interface DRHttpModel : NSObject

@property (nonatomic, assign) NSInteger pageIndex;

@property (nonatomic, strong) NSString *url;

@property (nonatomic, strong) NSDictionary *params;

@property (nonatomic, assign) DRRequestType type;

@property (nonatomic, assign) BOOL isLoading;

-(void) startRequestSuccess:(void(^)(id data))succBlock andFail:(RequestFail)failBlock;

@end


